package org.minos.edit.view.components
{
	import org.aswing.ASColor;
	import org.aswing.BorderLayout;
	import org.aswing.JPanel;
	import org.aswing.JScrollPane;
	import org.aswing.JTable;
	import org.aswing.table.PropertyTableModel;
	import org.aswing.VectorListModel;
	
	/**
	 * ...
	 * @author Minos
	 */
	public class SceneTable extends JPanel
	{
		private var table : JTable;
		private var scrollPane : JScrollPane;
		private var taskList : VectorListModel;
		private var tableModel : PropertyTableModel;
		
		public function SceneTable()
		{
			super();
			setLayout( new BorderLayout() );
			init();
		}
		
		private function init() : void
		{
			table = new JTable();
			scrollPane = new JScrollPane( table );
			append( scrollPane , BorderLayout.CENTER );
			
			setOpaque( true );
			setBackground( new ASColor( 0xE6EBEC ) );
			/*
			 * 	public var label : String = "场景";
				public var frame : int = 0;
				public var children : String = "";
				public var url : String = "*.swf";
				public var score : String = "0";
				public var des : String = "鼠标提示";
				public var info : String = "操作提示";
				
				public var continueInfo:String = "选项评价";
				public var endInfo:String = "结束评价";
			 */
			taskList = new VectorListModel();
			tableModel = new PropertyTableModel( 
					taskList , 
					[ "名称" , "描述" , "开始" , "时长" , "重要度" , "状态" , "备注" ] , 
					[ "name" , "description" , "startTime" , "processTime" , "importance" , "status" , "statusComment" ] , 
					[ null , null , null , null , null , null , null ] 
				);
			
		}
		
		public function getTable() : JTable
		{
			return table;
		}
	}

}